package com.example.seatabusiness.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName: AccountService
 * @Description: 账户服务：扣钱
 */
@FeignClient(value = "seata-account")
@Service
public interface SeataAccountService {

    @RequestMapping(path = "/account", method = RequestMethod.GET)
    String updateMoney(@RequestParam("userId") String userId, @RequestParam("money") int money);

}
